txt = input("请输入一段文字：\n")
fo = open("D:\\hello.txt", "w", encoding="utf-8")
fo.write(txt)
fo.close()
